home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995 August: Tool Chest / Dev.CD Aug 95 TC / Dev.CD Aug 95 TC.toast / New System Software Extensions / QuickDraw™ GX 1.1.2 / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / CustomWriter GX 1.0.3 ƒ / NewApp.a < prev    next >
Encoding:
Text File  |  1995-06-20  |  2.8 KB  |  123 lines  |  [TEXT/MPS ]

  1. ;------------------------------------------------------------------------------
  2. ;
  3. ;    FILENAME
  4. ;        NewApp.a
  5. ;
  6. ;    DESCRIPTION
  7. ;        Contains the jump table for all of the messages we override except
  8. ;        the old-application compatibility ones.  Also includes our special
  9. ;        global data routines used by the code in GlobalData.c.
  10. ;
  11. ;    COPYRIGHT
  12. ;        Copyright © 1995 Apple Computer, Inc.
  13. ;        All rights reserved.
  14. ;    
  15. ;    Modification history
  16. ;        06/14/95 - Dave Hersey -    Version 1.0.3 to fix a bug in
  17. ;                                    CustomBufferingAndIO.c when creating
  18. ;                                    high-res PICTs, and to make the size
  19. ;                                    of buffers more flexible.
  20. ;
  21. ;        05/26/95 - Dave Hersey -    Version 1.0.2 to add the new 'outp'
  22. ;                                    desktop printer resource in NewApp.c.
  23. ;
  24. ;        05/03/95 - Dave Hersey -    Version 1.0.1 to fix some minor bugs in
  25. ;                                    CustomBufferingAndIO.c.
  26. ;
  27. ;        01/14/95 - Dave Hersey -    Created from the shell of a hollowed-out
  28. ;                                    ImageWriter driver.
  29. ;
  30. ;    NOTE: Relevant goodies are listed in MPW's "Mark" menu.
  31. ;
  32. ;--------------------------------------------------------------------------------
  33.  
  34.                 CASE    OBJ
  35.                 STRING    ASIS
  36.  
  37. SD_JumpTable    PROC    EXPORT
  38.                 dc.l    0            
  39.  
  40.     ; Raster messages
  41.  
  42.                 IMPORT SD_RasterDataIn
  43.                 JMP SD_RasterDataIn
  44.  
  45.     ; Universal messages
  46.  
  47.                 IMPORT SD_ImageJob
  48.                 JMP SD_ImageJob
  49.  
  50.                 IMPORT SD_StartSendPage
  51.                 JMP SD_StartSendPage
  52.             
  53.                 IMPORT SD_FinishSendPage
  54.                 JMP SD_FinishSendPage
  55.             
  56.                 IMPORT SD_SetupImageData
  57.                 JMP SD_SetupImageData
  58.  
  59.                 IMPORT SD_OpenConnection
  60.                 JMP SD_OpenConnection
  61.             
  62.                 IMPORT SD_CloseConnection
  63.                 JMP SD_CloseConnection
  64.             
  65.                 IMPORT SD_CleanupOpenConnection
  66.                 JMP SD_CleanupOpenConnection
  67.  
  68.                 IMPORT SD_BufferData
  69.                 JMP SD_BufferData
  70.  
  71.                 IMPORT SD_FreeBuffer
  72.                 JMP SD_FreeBuffer
  73.  
  74.                 IMPORT SD_WriteData
  75.                 JMP SD_WriteData
  76.  
  77.                 IMPORT SD_DumpBuffer
  78.                 JMP SD_DumpBuffer
  79.  
  80.                 IMPORT SD_DefaultDesktopPrinter
  81.                 JMP SD_DefaultDesktopPrinter
  82.  
  83.  
  84. ;    -----------------------------------------------------------
  85. ;                JUMP TABLE GLOBAL DATA SUPPORT
  86. ;    -----------------------------------------------------------
  87.  
  88. ;    GlobalDataHdl is storage for a handle to our global data.
  89. ;    We save and retrieve this value using the routines below.
  90. ;    We default the value to nil, so that our global data
  91. ;    routines can see if a valid handle has been stored here.
  92. ;
  93.  
  94. GlobalDataHdl        DC.L    0
  95.  
  96.                     EXPORT    SetDriverGlobals
  97.                     EXPORT    GetDriverGlobals
  98.  
  99.  
  100. ;    SetDriverGlobals saves the passed parameter in our global data storage
  101. ;    (above).  We call this routine from CreateAndStoreGlobals in
  102. ;    NewApp.c.
  103. ;
  104.  
  105. SetDriverGlobals    LINK    A6,#0
  106.                     LEA        GlobalDataHdl,A0
  107.                     MOVE.L    8(A6),(A0)
  108.                     UNLK    A6
  109.                     RTS
  110.  
  111.  
  112. ;    GetDriverGlobals retrieves the handle stored in our global data
  113. ;    storage (above).  We call this routine from several routines in
  114. ;    NewApp.c.
  115. ;
  116.  
  117. GetDriverGlobals    LEA        GlobalDataHdl,A0
  118.                     MOVE.L    (A0),D0
  119.                     RTS
  120.  
  121.                     ENDPROC
  122.     END
  123.